{% extends "base_generic.html" %}
{% load i18n %}

{% block content %}
  <h1>{% trans "Lyf's Library Home" %}</h1>

  <p>{% trans "Welcome to" %} <em>{% trans "lyf's Library" %}</em>, {% trans "a very basic Django website developed as a tutorial example on the Mozilla Developer Network." %}</p>

  <h2>{% trans "Dynamic content" %}</h2>

  <p>{% trans "The library has the following record counts:" %}</p>
  <ul>
    <li><strong>{% trans "Books" %}:</strong> {{ num_books }}</li>
    <li><strong>{% trans "Copies" %}:</strong> {{ num_instances }}</li>
    <li><strong>{% trans "Copies available" %}:</strong> {{ num_instances_available }}</li>
    <li><strong>{% trans "Authors" %}:</strong> {{ num_authors }}</li>
  </ul>
  <p>
    {% trans "You have visited this page" %} {{ num_visits }}{% if num_visits == 1 %} {% trans "time" %}{%
  else %} {% trans "times" %}{% endif %}.
  </p>
{% endblock %}
{% load static %}
<img src="{% static "image/figure_photo.jpg" %}" alt="{% trans 'Library Image' %}"/>
